package com.ap.core.jbehave.stories;

import com.ap.core.jbehave.CommonStories;
import com.ap.core.jbehave.StoryContext;
import com.ap.core.jbehave.StoryContextClearer;
import com.ap.core.jbehave.retrievertp.RetrieveRTPSteps;
import org.jbehave.core.steps.InjectableStepsFactory;
import org.jbehave.core.steps.InstanceStepsFactory;

import java.util.Arrays;
import java.util.List;

public class RetrieveRTP extends CommonStories {

    @Override
	public InjectableStepsFactory stepsFactory() {
		return new InstanceStepsFactory(configuration(), new RetrieveRTPSteps(new StoryContext()), new StoryContextClearer(storyContext()));
	}
    
    @Override
	protected List<String> storyPaths() {
		return Arrays.asList("stories/retrieve_rtp_mcom.story", "stories/retrieve_rtp_ecom.story");
	}

}
